package ooday01;

public class StudentTest {
    public static void main(String[] args) {
        Student zg =new Student();
        //访问成员变量
        zg.name="张光";
        zg.age=22;
        zg.className="jsd2408";
        zg.stuId="001";
        //调用方法
        zg.study();
        zg.sayHi();
        zg.playwith("李林");

        Student zl=new Student();
        zl.study();
        zl.sayHi();
        zl.playwith("张光");

        Student xjh =new Student("徐嘉豪",22,"jsd2408","002");
        xjh.study();
        xjh.sayHi();
        xjh.playwith("ysq");
    }
}
